#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
@file_name: using_await_to_wait_for_the_result_of_coroutine.py
@date: 2025-07-23 15:49
@author: Falling Snow
@desc: 使用 await 等待协程的结果
"""

import asyncio


async def coroutine_add_one(number: int) -> int:
    return number + 1


async def main() -> None:
    one_plus_one = await coroutine_add_one(1)
    two_plus_one = await coroutine_add_one(2)

    print(one_plus_one)
    print(two_plus_one)


if __name__ == '__main__':
    asyncio.run(main())
